package com.huirui.server.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 购物车视图对象，用于展示用户购物车中的商品信息
 */
@Data
@Schema(description = "购物车视图对象，包含购物车中的商品信息")
public class ShippingCartVo {

    @Schema(description = "购物车记录ID", example = "1001")
    private Long id;

    @Schema(description = "商品名称", example = "华为Mate 60 Pro")
    private String productName;

    @Schema(description = "商品规格名称", example = "12GB+512GB 黑色")
    private String productSpecificationName;

    @Schema(description = "商品单价", example = "6999.00")
    private Double discountPrice;

    @Schema(description = "加入购物车时的价格")
    private Double priceWhenAddShippingCart;

    @Schema(description = "商品数量", example = "2")
    private Long quantity;

    @Schema(description = "商品ID", example = "2001")
    private Long productId;

    @Schema(description = "商品规格ID")
    private Long productSpecificationId;

    @Schema(description = "规格项图片")
    private String imageUrl;
}
